package org.simplecrm.service.event;

import org.simplecrm.domain.event.Event;

import java.util.List;

/**
 *
 */
public interface EventService {

    //List<Event> getEventsOfCustomer(int customerId);

    /**
     * @param customerId
     * @param pageNumber
     * @param pageSize
     * @return
     */
    List<Event> getEventsPage(int customerId, int pageNumber, int pageSize);

    /**
     * @param customerId
     * @return
     */
    Long getEventsCount(int customerId);

    /**
     *
     * @param id
     * @return
     */
    Event getEventById(int id);

    /**
     *
     * @param id
     */
    void deleteEvent(int id);

    /**
     *
     * @param newEvent
     */
    void addNewEvent(Event newEvent);

    /**
     *
     * @param updatedEvent
     */
    void updateEvent(Event updatedEvent);
}